public class test2 {
    public static void main(String[] args) {
        String s="abcdeee";
        char c[]=s.toCharArray();
        int []a=new int[128];
        for(char c1:c){
            System.out.println(c1);
        }
        for(int i=0;i<c.length;i++){
            char cc=c[i];
            a[cc]++;
            System.out.println(a[cc]);
        }

    }
}
